package com.ktjiaoyu.crm.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Entity
@Table(name = "sal_plan")
public class Plan implements Serializable {
    public Long getPlaId() {
        return plaId;
    }

    public void setPlaId(Long plaId) {
        this.plaId = plaId;
    }

    public Chance getChance() {
        return chance;
    }

    public void setChance(Chance chance) {
        this.chance = chance;
    }

    public Date getPlaDate() {
        return plaDate;
    }

    public void setPlaDate(Date plaDate) {
        this.plaDate = plaDate;
    }

    public String getPlaTodo() {
        return plaTodo;
    }

    public void setPlaTodo(String plaTodo) {
        this.plaTodo = plaTodo;
    }

    public String getPlaResult() {
        return plaResult;
    }

    public void setPlaResult(String plaResult) {
        this.plaResult = plaResult;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "pla_id")
    private Long plaId;
    @ManyToOne(targetEntity = Chance.class)
    @JoinColumn(name = "pla_chc_id")
    private Chance chance;
    @Column(name = "pla_date")
    private Date plaDate;
    @Column(name = "pla_todo")
    private String plaTodo;
    @Column(name = "pla_result")
    private String plaResult;

    public Plan() {
    }
}
